import 'package:flutter/material.dart';
class Navigation extends BottomNavigationBar{


  Navigation({
    required BuildContext context,
    required int currentIndex,
    required void Function(int index) onTap
  }) :
    super(
          items: const [
            BottomNavigationBarItem(label: '首页', icon: Icon(Icons.home)),
            BottomNavigationBarItem(label: '我的', icon: Icon(Icons.perm_identity))
          ],
          currentIndex: currentIndex,
          onTap: onTap,
          selectedItemColor: const Color.fromARGB(255, 100, 203, 184)
      )
  ;

}